package org.third.integration.etcd.bean;

import java.util.List;

/**
 * Created by Xiangrui on 2/5/2018.
 */
public class KubeEtcdResponseV3 {

    private String errorCode;
    private String message;
    private String cause;

    private Header header;
    private List<Kvs> kvs;
    private String count;

    public static class Header{
        private String cluster_id;
        private String member_id;
        private String revision;
        private String raft_term;

        public String getCluster_id() {
            return cluster_id;
        }

        public void setCluster_id(String cluster_id) {
            this.cluster_id = cluster_id;
        }

        public String getMember_id() {
            return member_id;
        }

        public void setMember_id(String member_id) {
            this.member_id = member_id;
        }

        public String getRevision() {
            return revision;
        }

        public void setRevision(String revision) {
            this.revision = revision;
        }

        public String getRaft_term() {
            return raft_term;
        }

        public void setRaft_term(String raft_term) {
            this.raft_term = raft_term;
        }
    }

    public static class Kvs{
        private String key;
        private String create_revision;
        private String mod_revision;
        private String version;
        private String value;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getCreate_revision() {
            return create_revision;
        }

        public void setCreate_revision(String create_revision) {
            this.create_revision = create_revision;
        }

        public String getMod_revision() {
            return mod_revision;
        }

        public void setMod_revision(String mod_revision) {
            this.mod_revision = mod_revision;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public Header getHeader() {
        return header;
    }

    public void setHeader(Header header) {
        this.header = header;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public List<Kvs> getKvs() {
        return kvs;
    }

    public void setKvs(List<Kvs> kvs) {
        this.kvs = kvs;
    }
}